package com.one.shopping.adapter;

import android.content.Context;

import com.one.shopping.R;
import com.one.shopping.entity.Member;

/**
 * @author 柯尊诚
 * @version 1.0
 * @date 创建时间：2016/1/10 10:20
 */
public class MemberAdapter extends CommonAdapter<Member>{

    public MemberAdapter(Context context, int layoutId) {
        super(context, layoutId);
    }

    @Override
    protected void convert(ViewHolder vh, Member member) {
        vh.setText(R.id.member_list_name_tv, member.getUserName());
        vh.setText(R.id.member_list_id_tv, member.getCardId() + "");
        vh.setText(R.id.member_list_score_tv, member.getScore());
        vh.setText(R.id.member_list_money_tv, member.getMoney());
    }
}
